home *** CD-ROM | disk | FTP | other *** search
- property OFFstate, ONstate, NormalState, outcurs, incurs, incursSet, customImage, useCustom, customMask, oldcursor, pCurrentImage
- global gImageDescription, gListObject
-
- on translate_cursor me, Setting, image, mask, Custom
- val = [member(image), member(mask)]
- return val
- return Setting
- end
-
- on beginSprite me
- oldcursor = member("point")
- val = translate_cursor(me, me.incursSet, "point", "point mask", 1)
- set the cursor of sprite the spriteNum of me to val
- memref = the member of sprite the currentSpriteNum
- castLibNum = memref.castLibNum
- NormalState = member(member(memref).memberNum, castLibNum)
- DownState = member(member(memref).memberNum + 1, castLibNum)
- OFFstate = member(member(memref).memberNum, castLibNum)
- ONstate = member(member(memref).memberNum + 1, castLibNum)
- end
-
- on endSprite me
- oldcursor = member("point")
- end
-
- on mouseUp me
- if the member of sprite me.spriteNum = me.ONstate then
- set the member of sprite the spriteNum of me to me.OFFstate
- if the mouseH > 100 then
- Option = #update
- else
- Option = #add
- end if
- gImageDescription = member("description").text
- SaveImageToList(Option)
- else
- if value(gListObject).pCurrentImage = EMPTY then
- exit
- end if
- set the member of sprite the spriteNum of me to me.ONstate
- end if
- end
-
- on mouseUpOutSide me
- set the member of sprite the spriteNum of me to me.OFFstate
- end
-